<?php /*a:2:{s:78:"/www/wwwroot/test.usdtes.vip/test/application/adminabc/view/withdraw/info.html";i:1678364212;s:77:"/www/wwwroot/test.usdtes.vip/test/application/adminabc/view/public/style.html";i:1678364220;}*/ ?>
﻿<!DOCTYPE html>
<html class="x-admin-sm">

<head>
<meta charset="UTF-8">
<title>欢迎页面</title>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
<link rel="stylesheet" href="/static/admin/css/font.css">
<link rel="stylesheet" href="/static/admin/css/xadmin.css">
<script type="text/javascript"	src="/static/admin/js/jquery.min.js"></script>
<script src="/static/admin/lib/layui/layui.js" charset="utf-8"></script>
<script type="text/javascript" src="/static/admin/js/xadmin.js"></script>
<script type="text/javascript" src="/static/admin/js/common.js"></script>
<link rel="stylesheet" type="text/css" href="/plugin/webuploader/webuploader.css">
<script type="text/javascript" src="/plugin/webuploader/webuploader.js"></script>
<script type="text/javascript" src="/plugin/clipboard/clipboard.js"></script>
<!--[if lt IE 9]>
  <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
  <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<script type="text/javascript">
function uploadimg(f1,f2,f3) {
	//f2 = "'" + f2 + "'";
	//alert(f2);
	var $list =$(f1);
	var thumbnailWidth = 150;
	var thumbnailHeight = 150;
	// 初始化Web Uploader
	var uploader = WebUploader.create({
		// 选完文件后，是否自动上传。
		auto: true,
		// swf文件路径
		swf: '/plugin/webuploader/Uploader.swf',
		// 文件接收服务端。
		server: '/plugin/uploadify/uploader.php',
		// 选择文件的按钮。可选。
		// 内部根据当前运行是创建，可能是input元素，也可能是flash.
		pick: f2,
		// 只允许选择图片文件。
		accept: {
			title: 'Images',
			extensions: 'gif,jpg,jpeg,bmp,png',
			mimeTypes: 'image/*'
		}
	});
	// 当有文件添加进来的时候
	uploader.on( 'fileQueued', function( file ) {
	    var $li = $('<div id="' + file.id + '" class="file-item thumbnail">' +  '<img></div>'),
	        $img = $li.find('img');
	    
	    // $list为容器jQuery实例
	    $list.html( $li );

	    // 创建缩略图
	    // 如果为非图片文件，可以不用调用此方法。
	    // thumbnailWidth x thumbnailHeight 为 100 x 100
	    uploader.makeThumb( file, function( error, src ) {
	        if ( error ) {
	            $img.replaceWith('<span>不能预览</span>');
	            return;
	        }
	        $img.attr( 'src', src );
	    }, thumbnailWidth, thumbnailHeight );
	});
	uploader.on('uploadSuccess', function(file, response){
		  $(f3).val(response._raw);
	});
}
</script>
<style type="text/css">
body {background-color: #fff;}
</style>
<script type="text/javascript">
  $(document).ready(function(){
	layui.use(['form','table'], function() {
		var form = layui.form; //只有执行了这一步，部分表单元素才会自动修饰成功

		//……

		//但是，如果你的HTML是动态生成的，自动渲染就会失效
		//因此你需要在相应的地方，执行下述方法来手动渲染，跟这类似的还有 element.init();
		form.render();
	});
  });
</script>
</head>
<body>
	<div class="layui-fluid">
		<div class="layui-row">
              <table class="layui-table">
                  <tbody>
                    <tr>
                      <th>订单号</th>
                      <td><?php echo htmlentities($info['id']); ?></td>
                    </tr>
                    <tr>
                      <th>用户id</th>
                      <td><?php echo htmlentities($info['user_id']); ?> <a title="查看" href="javascript:void(0);" onclick="xadmin.open('编辑','<?php echo url("Member/info",array("id"=> $info["user_id"])); ?>')" class="layui-btn">查看</a></td>
                    </tr>
                    <tr>
                      <th>用户账号</th>
                      <td><?php echo htmlentities($info['user_name']); ?></td>
                    </tr>
                    <tr>
                      <th>提现金额</th>
                      <td><?php echo htmlentities($info['money']); ?></td>
                    </tr>
                    <tr>
                      <th>提现时间</th>
                      <td><?php echo htmlentities(date('Y-m-d H:i:s',!is_numeric($info['create_time'])? strtotime($info['create_time']) : $info['create_time'])); ?></td>
                    </tr>
                    <tr>
                         <th>状态</th>
                         <td>                         
                         <?php if($info['status'] == '0'): ?>
                            <span  class="layui-btn layui-btn-normal layui-btn-mini layui-btn-disabled">审核中</span>
                         <?php endif; if($info['status'] == '1'): ?>
                            <span class="layui-btn">审核通过</span>
                         <?php endif; if($info['status'] == '2'): ?>
                            <span class="layui-btn layui-btn-normal layui-btn-danger">审核失败</span>
                         <?php endif; if($info['status'] == '3'): ?>
                            <span class="layui-btn layui-btn-normal layui-btn-danger">冻结</span>
                         <?php endif; ?>                                                
                         </td>
                    </tr>                    
                  </tbody>
              </table>
		</div>
        <div class="layui-card">
                    <div class="layui-card-header">管理操作</div>
                        <div class="layui-card-body ">
                            <form class="layui-form" method="post">
							        <input type="hidden" name="id" value="<?php echo htmlentities(app('request')->param('id')); ?>">
									<div class="layui-form-item">
										<label class="layui-form-label" for="form-field-2"> Wallet Type：</label>
										<div class="layui-input-inline">
									          <select name="wallet_type" id="walletType" class='input-text'>
									         	<option value="1" <?php if($info['wallet_type'] == '1'): ?>selected="selected"<?php endif; ?>>TRC20</option>
										        <option value="2" <?php if($info['wallet_type'] == '2'): ?>selected="selected"<?php endif; ?>>ERC20</option>
									          </select>
										</div>
									</div>							        
									<div class="layui-form-item">
										<label class="layui-form-label" for="form-field-2"> 状态：</label>
										<div class="layui-input-inline">
											  <select name="status" class="layui-input layui-unselect">
											    <option value="0" <?php if($info['status'] == '0'): ?>selected="selected"<?php endif; ?>>审核中</option>
											    <option value="1" <?php if($info['status'] == '1'): ?>selected="selected"<?php endif; ?>>审核通过</option>
											    <option value="2" <?php if($info['status'] == '2'): ?>selected="selected"<?php endif; ?>>审核失败</option>	
											    <option value="3" <?php if($info['status'] == '3'): ?>selected="selected"<?php endif; ?>>冻结</option>											    
											  </select>
										</div>
									</div>
									<div class="layui-form-item">
										<label class="layui-form-label" for="form-field-2"> 备注：</label>
										<div class="layui-input-block">
											  <textarea rows="10" cols="20" name="remark" class="layui-textarea"><?php echo htmlentities($info['remark']); ?></textarea>
										</div>
									</div>
									<div class="hr hr-24"></div>								
									<div class="layui-form-item">
											<label for="L_repass" class="layui-form-label"></label>
											<input type="submit" class="layui-btn btn-save" value="保存">
									</div>																	
							</form>
                    </div>
        </div>		
	</div>
</body>
</html>
